package org.lgl.common.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lgl
 * @date 2022/2/24 18:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CodeMsg {
    private int code;
    private String msg;

    public static CodeMsg SUCCESS = new CodeMsg(0, "success");
    public static CodeMsg SERVER_ERROR = new CodeMsg(500000, "server error");
    public static CodeMsg BIND_ERROR = new CodeMsg(500001, "参数校验异常, %s");
    public static CodeMsg GOODS_ERROR = new CodeMsg(501000, "goods error");
}
